gtktreeselection: Fix a potential use of uninitialised variables
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Wed, 20 Nov 2013 17:39:02 +0000 (17:39 +0000)
committerPhilip Withnall <philip.withnall@collabora.co.uk>
Mon, 9 Mar 2015 13:41:37 +0000 (13:41 +0000)
Found by scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

gtk/gtktreeselection.c

index 778d76427afd56231f813a6c9a49dabf7aa3805d..1f6ae9b7e6529eb8447b871eaa95450361f1641a 100644 (file)
@@ -1297,7 +1297,7 @@ gtk_tree_selection_real_modify_range (GtkTreeSelection *selection,
                                      GtkTreePath      *end_path)
 {
   GtkTreeSelectionPrivate *priv = selection->priv;
-  GtkRBNode *start_node, *end_node;
+  GtkRBNode *start_node = NULL, *end_node = NULL;
   GtkRBTree *start_tree, *end_tree;
   GtkTreePath *anchor_path = NULL;
   gboolean dirty = FALSE;